// pages/shop/qr.js
var app = getApp();
Page({
  data:{
    url: 'http://wdds-app.b0.upaiyun.com/default/contact-qr.jpg',
    phone: '#',
    wechat: '#'
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
  },
  onReady: function(){
  },
  previewImage:function(){
    var that = this;
    wx.previewImage({
      urls: [that.data.url]
    });
  },
  telPhone: function(){
    var that = this;
    wx.makePhoneCall({
      phoneNumber: that.data.phone
    })
  }
})
